﻿using Shop.RemoteModel.Stock;
using Shop.RemoteModel.Stock.Model;
using Shop.Service.Interface;
using WeDonekRpc.Client;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class GoodsStockEvent : IRpcApiService
    {
        private readonly IGoodsStockService _Service;

        public GoodsStockEvent (IGoodsStockService service)
        {
            this._Service = service;
        }

        public PagingResult<GoodsStockDto> QueryGoodsStock (QueryGoodsStock obj)
        {
            return this._Service.Query(obj.Query, obj.ToBasicPage());
        }
    }
}
